package com.ljlobserv.demo.observe;

import com.ljlobserv.demo.Observe;
import com.ljlobserv.demo.dao.UserRecodeDao;
import com.ljlobserv.demo.dao.UserRecordImpl;

/**
 * ClassName：UserRecordObserve
 * Description：
 * Create by Administrator
 * Date：2020/8/25 0025 11:01
 */
public class UserRecordObserve implements Observe {

    private UserRecodeDao userRecodeDao = new UserRecordImpl();

    public void insert(Long id) {
        System.out.println("通知UserRecordObserve添加数据中...");
        userRecodeDao.insert(id);
    }

    public void delete(Long id) {
        System.out.println("通知UserRecordObserve删除数据中...");
        userRecodeDao.delete(id);
    }
}
